package com.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * ProductVO entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class Product implements java.io.Serializable {

	// Fields

	private Long productId;
	private Category categoryDTO;
	private String productname;
	private Integer markfordelete;
	private Date lastupdate;
	private String description;
	private String thumbnail;
	private String fullimage;
	private String partnumber;
	private Integer quantity;
	private Double price;
	private Integer discount;
	@SuppressWarnings("unchecked")
	private Set productcomments = new HashSet(0);
	@SuppressWarnings("unchecked")
	private Set orderitemses = new HashSet(0);
	@SuppressWarnings("unchecked")
	private Set wishlists = new HashSet(0);

	// Constructors

	/** default constructor */
	public Product() {
	}

	/** minimal constructor */
	public Product(Category categoryDTO, String productname) {
		this.categoryDTO = categoryDTO;
		this.productname = productname;
	}

	/** full constructor */
	@SuppressWarnings("unchecked")
	public Product(Category categoryDTO, String productname,
			Integer markfordelete, Date lastupdate, String description,
			String thumbnail, String fullimage, String partnumber,
			Integer quantity, Double price, Integer discount,
			Set productcomments, Set orderitemses, Set wishlists) {
		this.categoryDTO = categoryDTO;
		this.productname = productname;
		this.markfordelete = markfordelete;
		this.lastupdate = lastupdate;
		this.description = description;
		this.thumbnail = thumbnail;
		this.fullimage = fullimage;
		this.partnumber = partnumber;
		this.quantity = quantity;
		this.price = price;
		this.discount = discount;
		this.productcomments = productcomments;
		this.orderitemses = orderitemses;
		this.wishlists = wishlists;
	}

	// Property accessors

	public Long getProductId() {
		return this.productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public Category getCategory() {
		return this.categoryDTO;
	}

	public void setCategory(Category categoryDTO) {
		this.categoryDTO = categoryDTO;
	}

	public String getProductname() {
		return this.productname;
	}

	public void setProductname(String productname) {
		this.productname = productname;
	}

	public Integer getMarkfordelete() {
		return this.markfordelete;
	}

	public void setMarkfordelete(Integer markfordelete) {
		this.markfordelete = markfordelete;
	}

	public Date getLastupdate() {
		return this.lastupdate;
	}

	public void setLastupdate(Date lastupdate) {
		this.lastupdate = lastupdate;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getThumbnail() {
		return this.thumbnail;
	}

	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}

	public String getFullimage() {
		return this.fullimage;
	}

	public void setFullimage(String fullimage) {
		this.fullimage = fullimage;
	}

	public String getPartnumber() {
		return this.partnumber;
	}

	public void setPartnumber(String partnumber) {
		this.partnumber = partnumber;
	}

	public Integer getQuantity() {
		return this.quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getDiscount() {
		return this.discount;
	}

	public void setDiscount(Integer discount) {
		this.discount = discount;
	}

	@SuppressWarnings("unchecked")
	public Set getProductcomments() {
		return this.productcomments;
	}

	@SuppressWarnings("unchecked")
	public void setProductcomments(Set productcomments) {
		this.productcomments = productcomments;
	}

	@SuppressWarnings("unchecked")
	public Set getOrderitemses() {
		return this.orderitemses;
	}

	@SuppressWarnings("unchecked")
	public void setOrderitemses(Set orderitemses) {
		this.orderitemses = orderitemses;
	}

	@SuppressWarnings("unchecked")
	public Set getWishlists() {
		return this.wishlists;
	}

	@SuppressWarnings("unchecked")
	public void setWishlists(Set wishlists) {
		this.wishlists = wishlists;
	}

}